package com.fjnu.entity;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * 评论实体类
 * 对应数据库表：tb_comment
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Comment {
    private Integer id;
    private String content;
    private Integer articleId;
    private Integer userId;
    private Integer support;
    private Integer oppose;
    private Date createTime;
    private Date updateTime;

    // 自定义构造方法
    public Comment(String content, Integer articleId, Integer userId) {
        this.content = content;
        this.articleId = articleId;
        this.userId = userId;
    }
}